package Test;

import Student.Student;
import StudentController.StudentController;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StudentController controller = new StudentController();
        while (true) {
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.登入  2.注册  3.查看  4.退出  5.修改密码");
            String choice = sc.next();
            switch (choice) {
                case "1":
                    controller.login();
                    break;
                case "2":
                    controller.zhuce();
                    break;
                case "3":
                    controller.findAllStudent();
                    break;
                case "4":
                    System.out.println("退出");
                    System.exit(0);
                    break;
                case "5":
                    controller.updatePassWord();
                    break;
                default:
                    System.out.println("你的输入有误，请重新输入。");
            }
        }
    }
}
